package main

func main() {
	//name, age := Func10()
	//println(name, age)
	//
	//name1, _ := Func10()
	//println(name1)
	//
	//// 使用 := 的前提，就是左边至少有一个新变量
	//name1, name2 := Func10()
	//println(name1)
	//println(name2)
	//
	//Func6("hello", "world")

	//Recursive(0)
	//UseFunctional4()
	//Functional8()

	/*
	str := Closure("alen")
	// fn 其实以及从  closure 里面返回了
	// 但是我 fn 还要用到 "alen"
	println(str())
	str1 := Closure1()
	println(str1())

	age := Closure2()
	println(age())
	println(age())
	println(age())
	println(age())
	println(age())

	getAge := Closure2()
	println(getAge())
	println(getAge())
	println(getAge())
	println(getAge())
	println(getAge())
	*/
	//Defer()
	//DeferClosure()
	//DeferClosureV1()
	//println(DeferReturn())
	//println(DeferReturnV1())
	//DeferClosureLoopV1()
	//DeferClosureLoopV2()
	DeferClosureLoopV3()
}
